const { device } = require('alibabacloud-iot-device-sdk');
const iotClient = require('./iotClient');
const e = require('express');
const par = require('./param')


// 设备上线
async function main() {
    await iotClient.connect([
        {
            pk: 'a1Vtf1BLhjM',
            dn: 'LTUnS1ZeNpd6sLwoJKJJ',
            ds: 'e4662a2657b55f2a09c8fd668e73aa38'
        }
    ])

    console.log('All devices connected successfully!');

    console.log(iotClient.deviceClients['LTUnS1ZeNpd6sLwoJKJJ'].model.productKey)
    
}

main()